home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / UsingPDF / GhostScript / source / gs5.10 / cc-head.mak < prev    next >
Encoding:
Text File  |  1997-09-12  |  9.5 KB  |  288 lines

  1. #    Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # makefile for Unix/cc/X11 configuration.
  16.  
  17. #****************************************************************#
  18. #   If you want to change options, DO NOT edit unix-cc.mak       #
  19. #   or makefile.  Edit cc-head.mak and run the tar_cat script.   #
  20. #****************************************************************#
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  The commands are only relevant to `make install';
  30. # the directories also define the default search path for the
  31. # initialization files (gs_*.ps) and the fonts.
  32.  
  33. # If your system has installbsd, change install to installbsd in the next line.
  34. INSTALL = install -c
  35. INSTALL_PROGRAM = $(INSTALL) -m 755
  36. INSTALL_DATA = $(INSTALL) -m 644
  37.  
  38. prefix = /usr/local
  39. exec_prefix = $(prefix)
  40. bindir = $(exec_prefix)/bin
  41. scriptdir = $(bindir)
  42. mandir = $(prefix)/man
  43. man1ext = 1
  44. man1dir = $(mandir)/man$(man1ext)
  45. datadir = $(prefix)/share
  46. gsdir = $(datadir)/ghostscript
  47. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  48.  
  49. docdir=$(gsdatadir)/doc
  50. exdir=$(gsdatadir)/examples
  51. GS_DOCDIR=$(docdir)
  52.  
  53. # Define the default directory/ies for the runtime
  54. # initialization and font files.  Separate multiple directories with a :.
  55.  
  56. GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/fonts
  57.  
  58. # Define whether or not searching for initialization files should always
  59. # look in the current directory first.  This leads to well-known security
  60. # and confusion problems, but users insist on it.
  61. # NOTE: this also affects searching for files named on the command line:
  62. # see the "File searching" section of use.txt for full details.
  63. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  64.  
  65. SEARCH_HERE_FIRST=1
  66.  
  67. # Define the name of the interpreter initialization file.
  68. # (There is no reason to change this.)
  69.  
  70. GS_INIT=gs_init.ps
  71.  
  72. # Choose generic configuration options.
  73.  
  74. # -DDEBUG
  75. #    includes debugging features (-Z switch) in the code.
  76. #      Code runs substantially slower even if no debugging switches
  77. #      are set.
  78. # -DNOPRIVATE
  79. #    makes private (static) procedures and variables public,
  80. #      so they are visible to the debugger and profiler.
  81. #      No execution time or space penalty.
  82.  
  83. #GENOPT=-DDEBUG
  84. GENOPT=
  85.  
  86. # Define the name of the executable file.
  87.  
  88. GS=gs
  89.  
  90. # Define the directory where the IJG JPEG library sources are stored,
  91. # and the major version of the library that is stored there.
  92. # You may need to change this if the IJG library version changes.
  93. # See jpeg.mak for more information.
  94.  
  95. JSRCDIR=jpeg-6a
  96. JVERSION=6
  97.  
  98. # Define the directory where the PNG library sources are stored,
  99. # and the version of the library that is stored there.
  100. # You may need to change this if the libpng version changes.
  101. # See libpng.mak for more information.
  102.  
  103. PSRCDIR=libpng
  104. PVERSION=96
  105.  
  106. # Choose whether to use a shared version of the PNG library, and if so,
  107. # what its name is.
  108. # See gs.mak and make.txt for more information.
  109.  
  110. SHARE_LIBPNG=0
  111. LIBPNG_NAME=png
  112.  
  113. # Define the directory where the zlib sources are stored.
  114. # See zlib.mak for more information.
  115.  
  116. ZSRCDIR=zlib
  117.  
  118. # Choose whether to use a shared version of the zlib library, and if so,
  119. # what its name is (usually libz, but sometimes libgz).
  120. # See gs.mak and make.txt for more information.
  121.  
  122. SHARE_ZLIB=0
  123. #ZLIB_NAME=gz
  124. ZLIB_NAME=z
  125.  
  126. # Define how to build the library archives.  (These are not used in any
  127. # standard configuration.)
  128.  
  129. AR=ar
  130. ARFLAGS=qc
  131. RANLIB=ranlib
  132.  
  133. # Define the configuration ID.  Read gs.mak carefully before changing this.
  134.  
  135. CONFIG=
  136.  
  137. # ------ Platform-specific options ------ #
  138.  
  139. # Define the name of the linker for the final link step.
  140. # Normally this is the same as the C compiler.
  141.  
  142. CCLD=$(CC)
  143.  
  144. # Define the other compilation flags.  Add at most one of the following:
  145. #    -DBSD4_2 for 4.2bsd systems.
  146. #    -DSYSV for System V or DG/UX.
  147. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  148. #       or any System III Unix, or System V release 3-or-older Unix.
  149. #       Also add -Xa if your compiler accepts it.
  150. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  151. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  152. # XCFLAGS can be set from the command line.
  153. XCFLAGS=
  154.  
  155. CFLAGS=-O $(XCFLAGS)
  156.  
  157. # Define platform flags for ld.
  158. # SunOS and some others want -X; Ultrix wants -x.
  159. # SunOS 4.n may need -Bstatic.
  160. # XLDFLAGS can be set from the command line.
  161. XLDFLAGS=
  162.  
  163. LDFLAGS=$(XLDFLAGS)
  164.  
  165. # Define any extra libraries to link into the executable.
  166. # ISC Unix 2.2 wants -linet.
  167. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  168. # SVR4 may need -lnsl.
  169. # (Libraries required by individual drivers are handled automatically.)
  170.  
  171. EXTRALIBS=
  172.  
  173. # Define the include switch(es) for the X11 header files.
  174. # This can be null if handled in some other way (e.g., the files are
  175. # in /usr/include, or the directory is supplied by an environment variable);
  176. # in particular, SCO Xenix, Unix, and ODT just want
  177. #XINCLUDE=
  178. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  179. # not in $(XINCLUDE).
  180.  
  181. XINCLUDE=-I/usr/local/X/include
  182.  
  183. # Define the directory/ies and library names for the X11 library files.
  184. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  185. # (dynamic libraries on SVR4) and should not include -L.
  186. # Both can be null if these files are in the default linker search path;
  187. # in particular, SCO Xenix, Unix, and ODT just want
  188. #XLIBDIRS=
  189. # Solaris and other SVR4 systems with dynamic linking probably want
  190. #XLIBDIRS=-L/usr/openwin/lib
  191. #XLIBDIR=/usr/openwin/lib
  192. # X11R6 (on any platform) may need
  193. #XLIBS=Xt SM ICE Xext X11
  194.  
  195. XLIBDIRS=-L/usr/local/X/lib
  196. XLIBDIR=
  197. XLIBS=Xt Xext X11
  198.  
  199. # Define whether this platform has floating point hardware:
  200. #    FPU_TYPE=2 means floating point is faster than fixed point.
  201. # (This is the case on some RISCs with multiple instruction dispatch.)
  202. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  203. # than fixed point.
  204. #    FPU_TYPE=0 means that floating point may be considerably slower.
  205. #    FPU_TYPE=-1 means that floating point is always much slower than
  206. # fixed point.
  207.  
  208. FPU_TYPE=1
  209.  
  210. # ------ Devices and features ------ #
  211.  
  212. # Choose the language feature(s) to include.  See gs.mak for details.
  213.  
  214. FEATURE_DEVS=level2.dev pdf.dev pipe.dev
  215.  
  216. # Choose whether to compile the .ps initialization files into the executable.
  217. # See gs.mak for details.
  218.  
  219. COMPILE_INITS=0
  220.  
  221. # Choose whether to store band lists on files or in memory.
  222. # The choices are 'file' or 'memory'.
  223.  
  224. BAND_LIST_STORAGE=file
  225.  
  226. # Choose which compression method to use when storing band lists in memory.
  227. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  228. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  229.  
  230. BAND_LIST_COMPRESSOR=zlib
  231.  
  232. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  233. # See gs.mak and sfxfd.c for more details.
  234.  
  235. FILE_IMPLEMENTATION=stdio
  236.  
  237. # Choose the device(s) to include.  See devs.mak for details.
  238.  
  239. DEVICE_DEVS=x11.dev x11alpha.dev x11cmyk.dev x11mono.dev
  240. DEVICE_DEVS1=
  241. DEVICE_DEVS2=
  242. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  243. # Sun's cc can't compile gdevcdj.c.
  244. #DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  245. DEVICE_DEVS4=
  246. DEVICE_DEVS5=uniprint.dev
  247. DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  248. DEVICE_DEVS6=
  249. DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
  250. DEVICE_DEVS8=jpeg.dev jpeggray.dev pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev
  251. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  252. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  253. DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
  254. DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
  255. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  256. DEVICE_DEVS14=
  257. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  258.  
  259. # ---------------------------- End of options --------------------------- #
  260.  
  261. # Define the name of the partial makefile that specifies options --
  262. # used in dependencies.
  263.  
  264. MAKEFILE=cc-head.mak
  265.  
  266. # Define the ANSI-to-K&R dependency.
  267.  
  268. # This should be ansi2knr$(XEAUX), or $(ANSI2KNR_XE), but these macros
  269. # haven't been defined yet, and some buggy 'make' programs expand macros in
  270. # definitions at the time of definition rather than at the time of use.
  271. AK=ansi2knr
  272.  
  273. # Define the compilation rules and flags.
  274.  
  275. CCC=$(SHP)ccgs "$(CC) $(CCFLAGS) -c"
  276. # We compile ansi2knr, and only ansi2knr, unmodified.
  277. CCA2K=$(CC)
  278. CCAUX=$(SHP)ccgs "$(CC)"
  279. CCLEAF=$(CCC)
  280.  
  281. # --------------------------- Generic makefile ---------------------------- #
  282.  
  283. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  284. # is generic.  tar_cat concatenates all these together.
  285.